package com.java.zhuiyun.api.pc_login.service;

import com.java.zhuiyun.api.front_desk_user.entity.FrontDeskUser;
import com.java.zhuiyun.api.pc_login.entity.Register;
import com.java.zhuiyun.api.pc_login.entity.SysUserDto;
import com.java.zhuiyun.api.sys_user.entity.SysUser;
import com.java.zhuiyun.common.response.CommonResult;

/**
 * @InterfaceName PcLoginService
 * @Description TODO
 * @Author WX
 * @Date 2023/8/23 15:22
 **/
public interface PcLoginService {

    /**
    * @Author 杨友朋
    * @Description
    * @Date 2023/8/25 10:44
    * @Return TODO 用户注册
    * @param
    */
    CommonResult register(Register register);

    /**
    * @Author 杨友朋
    * @Description TODO 手机号发送验证码
    * @Date 2023/8/30 8:31
    * @Return
    * @param
    */
    CommonResult phoneSendCode(Register register) throws Exception;

    /**
    * @Author 杨友朋
    * @Description TODO 邮箱发送验证码
    * @Date 2023/8/30 8:32
    * @Return
    * @param
    */
    CommonResult emailSendCode(Register register);

    /**
    * @Author 杨友朋
    * @Description TODO 手机号验证码登录
    * @Date 2023/8/30 8:33
    * @Return
    * @param
    */
    CommonResult phoneCodeLogin(Register register);

    /**
    * @Author 杨友朋
    * @Description TODO 手机号密码登录
    * @Date 2023/8/30 8:33
    * @Return
    * @param
    */
    CommonResult phoneLogin(Register register);
    SysUserDto login(FrontDeskUser frontDeskUser);

    /**
    * @Author 杨友朋
    * @Description TODO 邮箱验证码登录
    * @Date 2023/8/30 8:34
    * @Return
    * @param
    */
    CommonResult emailCodeLogin(Register register);

    /**
    * @Author 杨友朋
    * @Description TODO 邮箱密码登录
    * @Date 2023/8/30 8:34
    * @Return
    * @param
    */
    CommonResult emailLogin(Register register);
}
